<?php
include "Sessao.php";
include "Monetary.php";	
include "../dao/PropostaDAO.php";

$propostadao = new PropostaDAO();
$valorTotal = $propostadao->getValorTotal($_SESSION["idproposta"]);
$json = '{"valor":"'.$valorTotal.'","extenso":"'.utf8_encode(Monetary::numberToExt($valorTotal)).'"}';
echo $json;
?>